package com.dl7.mvp.injector.modules;

import com.dl7.mvp.adapter.BaseVideoListAdapter;
import com.dl7.mvp.adapter.RecommendAlbumsAdapter;
import com.dl7.mvp.injector.PerFragment;
import com.dl7.mvp.module.base.IBasePresenter;
import com.dl7.mvp.module.video.list.RecommendFragment;
import com.dl7.mvp.module.video.list.RecommendPresenter;
import com.dl7.recycler.adapter.BaseQuickAdapter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by long on 2016/10/11.
 * 首页推荐video列表
 */
@Module
public class RecommendModule {

    private final RecommendFragment mView;

    public RecommendModule(RecommendFragment view) {
        this.mView = view;
    }

    @PerFragment
    @Provides
    public IBasePresenter providePresenter() {
        return new RecommendPresenter(mView);
    }

    @PerFragment
    @Provides
    public BaseQuickAdapter provideAdapter() {
        return new BaseVideoListAdapter(mView.getContext());
    }
}
